package state.group.events;

import messages.ByteList;

public abstract class ElevatorEvent extends BaseEvent {
    
    protected byte elevatorId;

    public ElevatorEvent(byte[] data, int startIndex)
    {
        super(data, startIndex);
        
        elevatorId = data[startIndex + 1];
    }
    
    public ElevatorEvent(byte elevatorId)
    {
        super();
        this.elevatorId = elevatorId;
    }
    
    public void appendToByteList(ByteList list)
    {
        super.appendToByteList(list);
        list.addByte(elevatorId);
    }
    
    public byte getElevatorId()
    {
        return elevatorId;
    }

}
